﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
using Entidades;

namespace CapaDatos
{
    class RinconLuzContext : ObjectContext
    {



        private static volatile BDRinconLuzEntities instancia;

        /// <summary>
        /// Gets the data context.
        /// </summary>
        public RinconLuzContext()
            : base("name=BDRinconLuzEntities", "BDRinconLuzEntities")
        {
        }


        public static BDRinconLuzEntities Context
        {
            get
            {
               // return instancia = new BDRinconLuzEntities();
                if (instancia == null) return instancia = new BDRinconLuzEntities();
                return instancia;
            }
        }

        public static BDRinconLuzEntities ContextNew
        {
            get
            {
                 return instancia = new BDRinconLuzEntities();
               
            }
        }



    }
}
